package com.unpor.route;

import com.jfinal.config.Routes;
import com.unpor.controller.IndexController;
import com.unpor.interceptor.FrontRouteInterceptor;

/**
 * Created by benhailong on 2017/7/30.
 * 前端路由配置全部放在这
 */
public class FrontRoute extends Routes{

    public void config() {
        setBaseViewPath("/front");// 前端所有文件以front为起始
        addInterceptor(new FrontRouteInterceptor());
        add("/", IndexController.class); // 配置路由

    }
}
